from base.base import Base
import page

class PageAppDownload(Base):

    # 点击首页
    def __page_app_click_home_index(self):
        # sleep(1)
        self.base_click(page.app_click_home_index)

    # 点击传输入口
    def __page_app_home_transmission_entrance(self):
        self.base_click(page.app_home_transmission_entrance)

    # 点击云收藏入口按钮
    def __page_app_transmission_cloud_entrance(self):
        self.base_click(page.app_transmission_cloud_entrance)

    # 点击已完成tab
    def __page_app_transmission_Completed(self):
        self.base_click(page.app_transmission_Completed)

    # 点击右上角批量选择状态入口
    def __page_app_transmission_all_entrance(self):
        self.base_click(page.app_transmission_all_entrance)

    # 点击全选
    def __page_app_transmission_select_all(self):
        self.base_click(page.app_transmission_select_all)

    # 点击下载按钮
    def __page_app_transmission_download(self):
        self.base_click(page.app_transmission_download)



    # 组合业务方法-批量下载本地
    def page_downloads(self):
        # 点击首页
        self.__page_app_click_home_index()
        # 点击传输入口
        self.__page_app_home_transmission_entrance()
        # 点击云收藏入口按钮
        self.__page_app_transmission_cloud_entrance()
        # 点击已完成tab
        self.__page_app_transmission_Completed()
        # todo 手势滑动到底部



        # 点击右上角批量选择状态入口
        # self.__page_app_transmission_all_entrance()
        # # 点击全选
        # self.__page_app_transmission_select_all()
        # # 点击下载按钮
        # self.__page_app_transmission_download()





